/*
 * init.h
 *
 *  Created on: 08/10/2009
 *      Author: mariano
 */
#ifndef INIT_H_
#define INIT_H_

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>

#define ARCH_CONFIG "/home/utn_so/Escritorio/PFS/PFS_POSTA/pfs.cfg"


/*--------------------------------------------------------------
// structures
//--------------------------------------------------------------*/
typedef struct
{
   char PPDIP[15+1];
   char PPDPort[5+1];
   char PRAIDPort[5+1];
   char PRAIDIP[15+1];
   int 	maxConn;
   int 	cacheSize;
}mainreg;


/*--------------------------------------------------------------
// global vars
//--------------------------------------------------------------*/
mainreg rm;     /*variable global para acceder a los datos*/


/*--------------------------------------------------------------
// prototypes
//--------------------------------------------------------------*/
int operar_arch (char *arch);
char* buscacfg (char* cad);
char * valida_numero ( char * cad );
char * valida_ip ( char * ip );
void carga_regmain (char *campo, char *ptr);
char* itoa_bis(int);

#endif /* INIT_H_ */
